package com.oauth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
import org.springframework.web.bind.annotation.ControllerAdvice;

/**
 * Eureka注册中心
 */
@SpringBootApplication
@ControllerAdvice
@EnableAuthorizationServer
//@EnableEurekaServer //申明这是一个Eureka服务
public class AppOauth {

    public static void main(String[] args) {
        SpringApplication.run(AppOauth.class, args);
    }
}
